home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # Copyright (c) 199-1995 NeXT Computer, Inc.
- # All Rights Reserved
- #
-
- WOFDIR=`pwd`
- WOFENTTARZ=WebObjectsEnterprise.TAR.Z
- WOFPROTARZ=WebObjectsPro.TAR.Z
- WOFTARZ=WebObjects.TAR.Z
- clear
- echo ""
- echo "Welcome to the WebObjects installation program!"
- echo ""
-
- echo "Are you sure you want to install? [yn]\c"
- read answer
-
- case $answer in
- y | Y | YES | yes | Yes)
- if [ -f $WOFDIR/$WOFENTTARZ ]; then
- WEBREL="WebObjects Enterprise"
- TARFILE=$WOFDIR/$WOFENTTARZ
- elif [ -f $WOFDIR/$WOFPROTARZ ]; then
- WEBREL="WebObjects Pro"
- TARFILE=$WOFDIR/$WOFPROTARZ
- elif [ -f $WOFDIR/$WOFTARZ ]; then
- WEBREL="WebObjects"
- TARFILE=$WOFDIR/$WOFTARZ
- else
- echo "I was unable to find the WebObjects release."
- echo "Please \`cd' to the installation directory and try again."
- echo ""
- exit 1
- fi
- echo "Begining installation of ${WEBREL} ..."
- (cd / ; $WOFDIR/gnutar --uncompress -x -v -f ${TARFILE} )
- echo ""
- echo ""
- echo "${WEBREL} has been installed."
- echo ""
- ;;
- *)
- echo ""
- echo "No WebObjects installation performed."
- echo ""
- ;;
- esac
- exit 0
-
-